<template>
  <Layout class="p-5 bg-white">
    <h6>学生个人详情</h6>
    <Table
      border
      :class="'m-1'"
      :columns="studentTableInfo.columnInfo"
      :data="studentTableInfo.data"
    ></Table>

    <!-- 	<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table>
		<br>
		<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table>




		<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table>
		<br>
		<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table>




		<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table>
		<br>
		<h6>学生线索</h6>
		<Table border :class="'m-1'" :columns="tableInfo.columnInfo" :data="tableInfo.data"></Table> -->
  </Layout>
</template>

<script>
export default {
  data() {
    return {
      publicSea: {
        studentName: '',
        secId: '',
        secFrontUrl: '',
        secBackUrl: '',
        secHandleUrl: '',
        tel: '',
        birth: '',
        graduateTime: '',
        studentCt: '',
        studentUt: '',
        source: '',
        statu: '',
        ypzw: '',
        csgz: '',
        tdgsmd: '',
        bz: '',
        autor: '',
        studentId: null,
        resourceCu: null,
        resourceCt: '',
        resourceUt: '',
        stage: '',
      },
      studentTableInfo: {
        currentPage: 1,
        total: 0,
        pageSize: 10,
        columnInfo: [
          //表头-----------------------------------
          {
            title: '学生姓名',
            key: 'name',
          },
          {
            title: '身份证号',
            key: 'secId',
          },
          {
            title: '身份证正面',
            key: 'secFrontUrl', //Mock : studentName
          },
          {
            title: '身份证反面',
            key: 'secBackUrl',
          },
          {
            title: '身份证手持',
            key: 'secHandleUrl',
          },
          {
            title: '电话',
            key: 'tel',
          },
          {
            title: '生日',
            key: 'birth',
          },
          {
            title: '毕业日期',
            key: 'graduateTime',
          },
          {
            title: '联系地址',
            key: 'position',
          },
        ],
        data: [],
      },
      allStages: [],
    }
  },
  methods: {
    changeP: function(selectedPermissionId) {},
    submit: function() {
      let self = this

      delete self.$data.permission.cu
      delete self.$data.permission.ct
      delete self.$data.permission.uu
      delete self.$data.permission.ut

      //更新backview 待定
      this.http
        .put({
          url: '/backview/info',
          param: self.$data.backview,
        })
        .then((data) => {
          self.message.info('修改成功')
          self.$tabs.close()
        })
    },
    cancel: function() {
      this.$tabs.close()
    },
    init: function() {
      //init
      let self = this
      this.http
        .get({
          url: '/backview/all',
        })
        .then((data) => {
          //这里获取backview阶段详细信息
        })
    }, //init
  },
  created: function() {
    //this.$data.permission.permissionId = this.$route.params.pId;
    this.init()
  },
}
</script>
